package com.chalk.vo;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.chalk.model.News;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * lq
 */
@Data
@ToString(callSuper = true)
public class NewsVo {


    private Integer newsId;


    @NotBlank(message = "资讯标题不能为空！")
    private String newsTitle;

    @NotBlank(message = "资讯图片不能为空")
    private String newsImg;

    @NotBlank(message = "资讯内容不能为空")
    private String newsContent;

    @NotNull(message = "资讯类型id不能为空")
    private Integer newsTypeId;


    private LocalDateTime createTime;

    private Integer isDelete;

    private LocalDateTime updateTime;


}
